#pragma once
#include "triggerrequirement.h"
class FreeRayReq :
	public TriggerRequirement
{

	Ogre::RaySceneQuery* mRayScnQuery;
	Ogre::Vector3 startPos; 
	Ogre::Vector3 dir;
	int distance;

public:
	FreeRayReq(Ogre::RaySceneQuery* mRayScnQuery,Ogre::Vector3 startPos, Ogre::Vector3 dir, int dist);
	~FreeRayReq(void);

	bool CheckReq(EntityControl *entity);

	void subscribeParameterChanged(EntityControl *entity,TriggerRequirement*req);
	void unSubscribeParameterChanged(EntityControl *entity,TriggerRequirement*req);
};

